﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Movies
{
    public partial class FormQuickStart : Form
    {
        public FormQuickStart()
        {
            InitializeComponent();
        }


        private void overviewClose_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void FormQuickStart_Load(object sender, EventArgs e)
        {
            String firstName = HelperSettingProvider.Default().FirstName;

            if (firstName != null && !firstName.Trim().Equals(""))
            {
                nameLabel.Text = "Hello " + firstName.Trim() + "!!!";
            }

        }

        private void overviewSetup_Click(object sender, EventArgs e)
        {
            ShowTab(1);
        }

        private void ShowTab(int tabID)
        {
            quickSetupTabs.SelectedTab = quickSetupTabs.TabPages[tabID];
            
        }

        private void step1Next_Click(object sender, EventArgs e)
        {
            ShowTab(2);
        }

        private void step1Back_Click(object sender, EventArgs e)
        {
            ShowTab(0);
        }

        private void step2Back_Click(object sender, EventArgs e)
        {
            ShowTab(1);
        }

        private void step2Next_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void step2Close_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void step1Close_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void openDefineLocation_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            WinDisplayControllor.ShowMovieDefineMovieWin();
        }

        private void openDownlaod_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            WinDisplayControllor.ShowDetailsDownloadWin();
        }

        private void downalod_Click(object sender, EventArgs e)
        {
            WinDisplayControllor.ShowDetailsDownloadWin();
        }

        private void define_Click(object sender, EventArgs e)
        {
            WinDisplayControllor.ShowMovieDefineMovieWin();
        }
    }
}
